Fix #96 Add EBNF grammar for ROS2 names in self-testing python script#97
Fix #96 Add EBNF grammar for ROS2 names in self-testing python script#97tkruse wants to merge 1 commit intoros2:gh-pagesfrom tkruse:names_ebnf
Conversation
|
Some things to clarify (consider clarifying in the article):
|
|
Thanks for putting the current state into a pr, that's easier to track.
I'd say yes, so long as the contents of
I would say no, the section for name tokes says:
Since
I suppose that it could, but the document does not appear to be clear on that point right now. I vaguely remember discussing it, but I don't see it in the issue history at the moment, so I'll open an issue to address that concern: #98
Yes, that is described in the document I as:
It is also mentioned later in the document in more explicit terms.
I think that is find for the script, for now. I imagine we'll want to limit what goes there, but I also don't think |
|
I just wanted to clarify my response to:
The document says, more specifically:
So, it cannot start with a numeric (so Thanks @dhood for pointing this out. |
|
Ah, somehow I missed the "token" bit. That makes the EBNF simpler to write. Updated the PR, added more positive and negative examples to tests. |
Prototype for #96. Since last time I extended a bit. Because of the fully-qualified vs. non-fully-qualified, the grammar has grown a bit.
The grammar still does not prevent double underscores, the python script around it can handle that much easier I think.
The script itself does not yet handle maximum name length constraints.